n = int(input())
for i in range(n):
    start = chr(ord('A') + i)
    for j in range(n):
        print(start, end='')
        start = chr(ord(start) + 1)
        if start > 'Z':
            start = 'A'
    print()